<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>代理</title>
</head>

<body>
  <ul id="root">
    <li>我是第一个</li>
  </ul>
  <script>
    let url = 'http://localhost:3000/api/v1/getNowPlayingFilmList?cityId=110100&pageNum=1&pageSize=10'
    fetch(url).then(ret => ret.json()).then(data => {
      let html = data.data.films.map(({ name }) => `<li>${name}</li>`).join('')
      document.querySelector('#root').innerHTML += html
    })


  </script>
</body>

</html>